package com.aispeech;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;

public class Test {
    public static void main(String[] args) throws IOException {
//        String url = "https://lasr.duiopen.com/lasr-file-api/v2/audio/5fb2552250b872582c99df8a/slice/0?productId=279597576&apiKey=75031d2628f045a2afb81616c738f6ff";
////        String url = "http://10.12.8.30/lasr-file-api/v2/audio/5fb2552250b872582c99df8a/slice/0?productId=279597576&apiKey=75031d2628f045a2afb81616c738f6ff";
//
//        MultipartEntityBuilder builder = MultipartEntityBuilder.create();
//
//        FileBody fileBody = new FileBody(new File("D:/Prjs/test/audios/xiangce00000073.wav"), ContentType.DEFAULT_BINARY);
//        builder.addPart("file", fileBody);
//        builder.setContentType(ContentType.MULTIPART_FORM_DATA);
//
//        HttpPost httpPost = new HttpPost(url);
//        httpPost.setEntity(builder.build());
//
//        CloseableHttpClient httpClient = HttpClients.createDefault();
//
//        CloseableHttpResponse closeableHttpResponse = httpClient.execute(httpPost);
//        String body = EntityUtils.toString(closeableHttpResponse.getEntity());
//
//        int status = closeableHttpResponse.getStatusLine().getStatusCode();
//
//        System.out.println(String.format("status: %d, body: %s", status, body));

        List<Double> lists = Arrays.asList(1.0, 2.0, 3.0, 4.0, 5.0);
    }
}
